home *** CD-ROM | disk | FTP | other *** search
/ HamCall (April 1991) / HAMCALL CD-ROM (Buckmaster)(April 1991).BIN / telcom / qmodem / install.bat < prev    next >
DOS Batch File  |  1988-12-14  |  2KB  |  75 lines

  1. echo off
  2. cls
  3. echo .
  4. echo .                     RECONFIG 2.1 Installation
  5. echo .
  6. echo .
  7.  
  8. if "%1"=="" goto nodir1
  9. echo .     Installing Reconfig 2.1 to c:\%1
  10. goto common1
  11.  
  12. :nodir1
  13. echo .     Installing Reconfig 2.1 to c:\reconfig
  14.  
  15. :common1
  16. echo .
  17. echo .     Please wait...copying files...
  18. echo .
  19. if not exist reconfig.pgm goto fail
  20.  
  21. echo echo off >c:\reconfig.bat
  22. echo c: >>c:\reconfig.bat
  23.  
  24. if "%1"=="" goto nodir2
  25. if not exist c:\%1\*.* md c:\%1
  26. copy readme c:\%1\*.* >nul
  27. copy reconfig.pgm c:\%1\reconfig.exe >nul
  28. copy reboot.com c:\%1\*.* >nul
  29.  
  30. echo cd \%1 >>c:\reconfig.bat
  31. c:
  32. cd \%1
  33.  
  34. goto common2
  35.  
  36. :nodir2
  37. if not exist c:\reconfig\*.* md c:\reconfig
  38. copy readme c:\reconfig\*.* >nul
  39. copy reconfig.pgm c:\reconfig\reconfig.exe >nul
  40. copy reboot.com c:\reconfig\*.* >nul
  41.  
  42. echo cd \reconfig >>c:\reconfig.bat
  43. c:
  44. cd \reconfig
  45.  
  46. :common2
  47.  
  48. echo reconfig %%1 %%2 >>c:\reconfig.bat
  49. echo cd \ >>c:\reconfig.bat
  50.  
  51. if not exist reconfig.dbf reconfig
  52. cd \
  53. echo .
  54. echo .     Reconfig 2.1 has been installed...
  55. echo .
  56. echo .     Type     RECONFIG      to run it...
  57. echo .
  58. goto end
  59.  
  60. :fail
  61. cls
  62. echo .
  63. echo .     Reconfig installation ABORTED...
  64. echo .
  65. echo .     Note:  It is important NOT to initiate INSTALL from a different
  66. echo .            drive than which it resides.  For example, if INSTALL is
  67. echo .            on drive A, do NOT start it up by entering:
  68. echo .                          A:INSTALL
  69. echo .            Instead, start up the installation process by doing this:
  70. echo .                          A:
  71. echo .                          INSTALL
  72. echo .
  73.  
  74. :end
  75.